package com.four.order.service.impl;

import com.four.common.utils.R;
import com.four.order.dao.LogisticsDao;
import com.four.order.entity.OrLogistics;
import com.four.order.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: hxw
 * @Date: 2022/1/17 19:37
 */
@Service
public class LogisticsServiceImpl implements LogisticsService {
    @Autowired
    private LogisticsDao logisticsDao;

    /**
     * 添加物流
     * @param logistics
     * @return
     */
    @Override
    public R saveLogistics(OrLogistics logistics) {
        logisticsDao.saveLogistics(logistics);
        return R.ok();
    }
}
